import json


class ReadUtil:


    #封装读取json文件的方法 [(),(),()]
    @classmethod
    def read_json(cls,json_file):
        with open(json_file,"r",encoding="utf-8") as f:
            data = json.load(f)
            #定义list
            list1=[]
            for item in data:
                temp=tuple(item.values())
                list1.append(temp)
        return list1

    pass
if __name__ == '__main__':
    res = ReadUtil.read_json("sub.json")
    print(res)
